package org.phoenixframework.api.teacher.config.swagger;

import org.phoenixframework.common.tools.config.BaseSwaggerConfig;
import org.phoenixframework.common.tools.config.SwaggerProperties;
import org.springframework.context.annotation.Configuration;
import springfox.documentation.swagger2.annotations.EnableSwagger2WebMvc;

/**
 * Created by IntelliJ IDEA.
 *
 * @author doublelifeke
 * Email: hautxxxyzjk@163.com
 * DateTime: 2020/12/22 22:33
 * Description:
 */
@EnableSwagger2WebMvc
@Configuration
public class SwaggerConfig extends BaseSwaggerConfig {

    /**
     * 自定义Swagger配置
     *
     * @return Swagger配置
     */
    @Override
    public SwaggerProperties swaggerProperties() {
        return SwaggerProperties.builder()
                .apiBasePackage("org.phoenixframework.api.teacher.controller")
                .title("phoenix-api-teacher接口文档")
                .description("phoenix-api-teacher接口文档")
                .contactName("doublelifeke")
                .contactUrl("https://gitee.com/doublelifeke")
                .contactEmail("hautxxxyzjk@163.com")
                .version("1.0")
                .enableSecurity(false)
                .build();
    }
}
